package com.example.easybuy.mappers;

import com.example.easybuy.entity.Order;
import com.example.easybuy.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OrderMapper {
    List<Order> orderByPage(Map<String,Object> map);
    List<OrderDetail> selectOrderDetail(Map<String,Object> map);

    int updateOrder(Map<String,Object> map);

    int delOrder(Map<String,Object> map);

    int addOrder(Order order);
    int addOrderDetail(OrderDetail orderDetail);

    Order getOrder(Map<String ,Object> map);
}
